package com.chance.cc.crawler.prod.command.trigger.domain.vm.dcdapp;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.vm.dcdapp.adhoc.DcdappWebForumSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.dcdapp.adhoc.DcdappWebPraiseSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.dcdapp.realtime.*;
import com.chance.cc.crawler.prod.command.job.domain.vm.dcdapp.trace.DcdAppDynamicTraceCrawlerScheduleTrigger;
import com.chance.cc.crawler.prod.command.job.domain.vm.dcdapp.trace.DcdappWebForumTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.dcdapp.trace.DcdappWebPraiseTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2021/6/22 11:33
 * @Description
 *      懂车帝车系页
 **/
public class DCDAppSeriesCommonCrawlerScheduleTrigger extends CommonCrawlerSchedulerTrigger {

    public static void main(String[] args) {
//        publishDcdappPraiseRealtimeCrawlerScheduleTriggerInfo();
//        publishDcdappForumRealtimeCrawlerScheduleTriggerInfo();
//        publishDcdappPraiseTraceCrawlerScheduleTriggerInfo();
//        publishDcdappForumTraceCrawlerScheduleTriggerInfo();
//
//        publishDcdappPraiseSimpleCrawlerScheduleTriggerInfo();
//        publishDcdappForumSimpleCrawlerScheduleTriggerInfo();

//        publishDcdappRealtimeCrawlerScheduleTriggerInfo(DcdappWebDynamicRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        publishDcdappRealtimeCrawlerScheduleTriggerInfo(DcdappWebForumRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        publishDcdappRealtimeCrawlerScheduleTriggerInfo(DcdappWebEssenceRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        publishDcdappRealtimeCrawlerScheduleTriggerInfo(DcdappWebStoryTellingRealtimeCrawlerSchedulerJob.crawlerSchedulejob());


//        publishDcdappSimpleCrawlerScheduleTriggerInfo(DcdappWebDynamicRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        publishDcdappSimpleCrawlerScheduleTriggerInfo(DcdappWebForumRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        publishDcdappSimpleCrawlerScheduleTriggerInfo(DcdappWebEssenceRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        publishDcdappSimpleCrawlerScheduleTriggerInfo(DcdappWebStoryTellingRealtimeCrawlerSchedulerJob.crawlerSchedulejob());

       // publishDcdappSimpleCrawlerScheduleTriggerInfo(DcdappWebPraiseRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
        //懂车帝口碑 每天定时采集
      //  publishDcdappPraiseRealtimekoubeiCrawlerScheduleTriggerInfo();
        //懂车帝 动态板块 每小时采集一次
        //publishDcdappdongtaiRealtimekoubeiCrawlerScheduleTriggerInfo();
        //懂车帝  动态板块 回溯七天采集  每天1：10采集
       // publishDcdappdongtaiTracekoubeiCrawlerScheduleTriggerInfo();
        //懂车帝  问答板块  回溯七天采集
      //publishDcdappwendaRealtimekoubeiCrawlerScheduleTriggerInfo();
        //懂车帝  动态板块  补采
       // publishDcdappdongtaiTracekoubeiCrawlerScheduleTriggerInfoTest();
        //懂车帝 吉利  问答板块最新发布  每 天1：30采集 问答板块最新回复  每 天1：30采集
       publishDcdappjeelywendaRealtimeCrawlerScheduleTriggerInfo();
        //懂车帝问答板块临时采集
       // publishDcdappForumSimpleCrawlerScheduleTriggerInfo();
        //口碑临时采集
       // publishDcdappPraiseSimpleCrawlerScheduleTriggerInfo();
        //懂车帝周度采集
        //publishDcdappWeekRealtimeCrawlerScheduleTriggerInfo();
        //懂车帝每日采集
        //publishDcdappEveryDayRealtimeCrawlerScheduleTriggerInfo();
    }
    /*
    懂车帝每日采集
    * */
    public static void publishDcdappEveryDayRealtimeCrawlerScheduleTriggerInfo(){
      // CrawlerJob crawlerJob = DcdAppEveryDayRealtimeCrawlerScheduleJob.crawlerSchedulejobWenda();//问答
       //CrawlerJob crawlerJob = DcdAppEveryDayRealtimeCrawlerScheduleJob.crawlerSchedulejobDongtai();//动态
       //CrawlerJob crawlerJob = DcdAppEveryDayRealtimeCrawlerScheduleJob.crawlerSchedulejobjinghua();//精华
       CrawlerJob crawlerJob = DcdAppEveryDayRealtimeCrawlerScheduleJob.crawlerSchedulejobPraise();//口碑
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseTraceCrawlerSchedulerJob.domain,
                //CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                //"",
                "0 30 4 * * ?",
                "懂车帝四板块每日采集"
        );
    }
    /*
    懂车帝周度采集
    * */
    public static void publishDcdappWeekRealtimeCrawlerScheduleTriggerInfo(){
       CrawlerJob crawlerJob = DcdAppWeekRealtimeCrawlerScheduleJob.crawlerSchedulejobWenda();//问答
       //CrawlerJob crawlerJob = DcdAppWeekRealtimeCrawlerScheduleJob.crawlerSchedulejobDongtai();//动态
        //CrawlerJob crawlerJob = DcdAppWeekRealtimeCrawlerScheduleJob.crawlerSchedulejobjinghua();//精华
       // CrawlerJob crawlerJob = DcdAppWeekRealtimeCrawlerScheduleJob.crawlerSchedulejobPraise();//口碑
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseTraceCrawlerSchedulerJob.domain,
               // CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                //"0 30 0 ? * 5",
                "0 40 15 ? * 4",
                "懂车帝四板块周度采集"
        );
    }

    /*
     * 懂车帝  问答板块 回溯七天采集  每天1：10采集
     * */
    public static void publishDcdappjeelywendaRealtimeCrawlerScheduleTriggerInfo(){
       //CrawlerJob crawlerJob = DcdappWebForumJeelyReatimeCrawlerSchedulerJob.crawlerSchedulejobIssue();
       CrawlerJob crawlerJob = DcdappWebForumJeelyReatimeCrawlerSchedulerJob.crawlerSchedulejobComment();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseTraceCrawlerSchedulerJob.domain,
                //CrawlerMetaConstant.ScheduleJobTrigger_Simple,
               CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 17 * * ?",
                //"0 50 1 * * ?",
                //"",
                "懂车帝吉利项目 问答 采集"
        );
    }


    /*
     * 懂车帝  问答板块 回溯七天采集  每天1：10采集
     * */
    public static void publishDcdappwendaRealtimekoubeiCrawlerScheduleTriggerInfo(){
        CrawlerJob crawlerJob = DcdappWebForumRealtimeCrawlerSchedulerJob.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseTraceCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 40 0 * * ?",
                "懂车帝问答0:10采集"
        );
    }
    /*
     * 懂车帝  动态板块 回溯七天采集  每天1：10采集
     * */
    public static void publishDcdappdongtaiTracekoubeiCrawlerScheduleTriggerInfoTest(){
        CrawlerJob crawlerJob = DcdAppDynamicTraceCrawlerScheduleTrigger.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseTraceCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "",
                "懂车帝动态临时补采采"
        );
    }

    /*
     * 懂车帝  动态板块 回溯七天采集  每天1：10采集
     * */
    public static void publishDcdappdongtaiTracekoubeiCrawlerScheduleTriggerInfo(){
        CrawlerJob crawlerJob = DcdAppDynamicTraceCrawlerScheduleTrigger.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseTraceCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 10 1 * * ?",
                "懂车帝动态1:10采集"
        );
    }
    /*
    * 懂车帝口碑 每天定时采集
    * */
    public static void publishDcdappPraiseRealtimekoubeiCrawlerScheduleTriggerInfo(){
        CrawlerJob crawlerJob = DcdappWebPraiseRealtimeCrawlerSchedulerJob.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseTraceCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 10 0 * * ?",
                "懂车帝口碑0:10采集"
        );
    }
    /*
    * 懂车帝 动态板块 每小时采集一次
    * */
    public static void publishDcdappdongtaiRealtimekoubeiCrawlerScheduleTriggerInfo(){
        CrawlerJob crawlerJob = DcdappWebDynamicRealtimeCrawlerSchedulerJob.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseTraceCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 0/1 * * ?",
                "懂车帝动态板块每小时采集一次"
        );
    }


    /**
     * 懂车帝每小时采集
     */
    public static void publishDcdappRealtimeCrawlerScheduleTriggerInfo( CrawlerJob crawlerJob ){
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseRealtimeCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 0/1 * * ?",
                "懂车帝每小时采集一次"
        );
    }

    public static void publishDcdappPraiseRealtimeCrawlerScheduleTriggerInfo(){
        CrawlerJob crawlerJob = DcdappWebPraiseRealtimeCrawlerSchedulerJob.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseRealtimeCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 0/1 * * ?",
                "懂车帝口碑每小时采集一次"
        );
    }

    public static void publishDcdappForumRealtimeCrawlerScheduleTriggerInfo(){
        CrawlerJob crawlerJob = DcdappWebForumRealtimeCrawlerSchedulerJob.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebForumRealtimeCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 0/1 * * ?",
                "懂车帝问答每小时采集一次"
        );
    }


    public static void publishDcdappPraiseTraceCrawlerScheduleTriggerInfo(){
        CrawlerJob crawlerJob = DcdappWebPraiseTraceCrawlerSchedulerJob.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseTraceCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 10 2 * * ?",
                "懂车帝口碑2:10采集"
        );
    }

    public static void publishDcdappForumTraceCrawlerScheduleTriggerInfo(){
        CrawlerJob crawlerJob = DcdappWebForumTraceCrawlerSchedulerJob.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebForumTraceCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 10 2 * * ?",
                "懂车帝问答2:10采集"
        );
    }

    public static void publishDcdappForumSimpleCrawlerScheduleTriggerInfo(){
        CrawlerJob crawlerJob = DcdappWebForumSimpleCrawlerSchedulerJob.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebForumSimpleCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "",
                "懂车帝问答临时采集"
        );
    }

    public static void publishDcdappPraiseSimpleCrawlerScheduleTriggerInfo(){
        CrawlerJob crawlerJob = DcdappWebPraiseSimpleCrawlerSchedulerJob.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseSimpleCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "",
                "懂车帝口碑临时采集"
        );
    }

    public static void publishDcdappSimpleCrawlerScheduleTriggerInfo(CrawlerJob crawlerJob){

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DcdappWebPraiseSimpleCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "",
                "懂车帝口碑临时采集"
        );
    }

}
